﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model PessMvc.Models.ReviewFeedbackListModel
@using System.Text.RegularExpressions
@{
    ViewBag.Title = "评审意见导入";
}

<h2>评审意见导入</h2>
<div id="operate" class="formInput">
@using (Html.BeginForm("ImportReviewFeedbacks", "Archive", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {        
        <div>@Html.ActionLink("返回", "Index", "Archive", new {activityID=Model.ActivityID },null)@Html.ActionLink(" 下载模版", "Download", "Home", new {filename="reviewfeedbacks.xlsx" },null)</div>
        <input type="submit" value=" 导入 " />
        <input type="button" class="btnNew" value="浏览..." />
        <input type="text" name="textNew" id="textNew" class="textNew" readonly="true" /> 
        <input type="file" name="file" class="fileNew moreleft" id="fileNew" onchange="document.getElementById('textNew').value=this.value" />
       @Html.Hidden("subjectID", new { subjectID = Model },null)

    }
</div>

<fieldset>
    <legend></legend>

<h3>活动：@Html.DisplayFor(m=>Model.ActivityName)</h3>
<h3>学科：@Html.DisplayFor(m=>Model.SubjectName)</h3>


@{
    var grid = new WebGrid(Model.Feedbacks);
}

@grid.GetHtml(columns:grid.Columns(
    grid.Column("ArchiveSerialNumber", header: "档案编号"),
        grid.Column("ProjectSN", header: "立项编号"),
        grid.Column("ReviewFeedback", header: "反馈意见",format:@<text>@Regex.Replace(item.ReviewFeedback==null?"":item.ReviewFeedback,@"(?></?\w+)(?>(?:[^>'""]+|'[^']*'|""[^""]*"")*)>",string.Empty)</text> ),
        grid.Column("Conclusion",header: "评审结论",format:@<text>@Regex.Replace(item.Conclusion==null?"":item.Conclusion,@"(?></?\w+)(?>(?:[^>'""]+|'[^']*'|""[^""]*"")*)>",string.Empty)</text> )
    )
)
    </fieldset>
<script language="javascript">
    document.getElementsByTagName("table")[0].className = "oddTable";
</script>
